package com.springsample.login.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.springsample.login.dao.LoginDao;

@Controller
@RequestMapping("/")
public class LoginController {
	
	private LoginDao loginDao;
	
	@RequestMapping
	public String index() {
		return "login/login";
	}
	
	@RequestMapping("/doLogin")
	public String doLogin(HttpServletRequest request, 
			@RequestParam("userid") String userid,
			@RequestParam("userpwd") String userpwd) {
		loginDao.queryUser("");
		return "index";
	}
}
